package com.yanqu.road.server.cmd.tradewar;

import com.yanqu.road.server.cmd.CrossUnionCommand;
import com.yanqu.road.utils.YanQuMessageUtils;
import com.yanqu.road.pb.cross.tradewar.CrossTradeWarProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.logic.MessageHelper;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.C_CROSS_TRADE_WAR_QUERY_ENEMY_PATRONS_RESP, desc = "跨服查询商战对手门客响应")
public class CrossTradeWarCrossQueryEnemyPatronsRespCmd extends CrossUnionCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        CrossTradeWarProto.CrossTradeWarCrossQueryEnemyPatronsRespMsg reqMsg = CrossTradeWarProto.CrossTradeWarCrossQueryEnemyPatronsRespMsg.parseFrom(packet.getBytes());
        YanQuMessage pbMsg = YanQuMessageUtils.buildMessage(Protocol.S_CROSS_TRADE_WAR_QUERY_ENEMY_PATRONS_NOTIFY, reqMsg);
        MessageHelper.sendPacket(reqMsg.getMyServerId(), reqMsg.getMyUserId(), pbMsg);
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {

    }

    @Override
    public void sendData() {

    }
}
